#ifndef STRINGTONUMB_H_INCLUDED
#define STRINGTONUMB_H_INCLUDED

#include <sstream>
#include <string>

template <typename T>
  T StringToNumber ( const std::string &Text )
  {
     std::istringstream ss(Text);
     T result;
     return ss >> result ? result : 0;
  }


#endif // STRINGTONUMB_H_INCLUDED
